package cn.panda.edu.dao;

import cn.panda.edu.model.Select;

import java.util.List;

/**
 * 
 * 类描述：  选择题表的操作
 */
public interface SelectMapper {
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description:  根据题目编号删除
	* @param @param selectId
	* @return int
	 */
    int deleteByPrimaryKey(Integer selectId);
    /**
     * 
    * @Title: insert 
    * @Description: 添加 题目
    * @param @param record
    * @return int
     */
    int insert(Select record);
    /**
     * 
    * @Title: insertSelective 
    * @Description:  动态添加题目
    * @param @param record
    * @return int
     */
    int insertSelective(Select record);
    /**
     * 
    * @Title: insertSelective 
    * @Description:  根据题目编号查询
    * @param @param record
    * @return int
     */
    Select selectByPrimaryKey(Integer selectId);
    /**
     * 
     * @Title: insertSelective 
     * @Description:  根据题目编号查询
     * @param @param record
     * @return int
     */
    Select selectByCourseId(Integer selectId);
    /**
     * 
     */
    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: 动态更新题目 
    * @param @param record
    * @return int
     */
    int updateByPrimaryKeySelective(Select record);
    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: 更新题目 
    * @param @param record
    * @return int
     */
    int updateByPrimaryKey(Select record);
    /**
     * 
    * @Title: listSelectByCourseId 
    * @Description: 根据课程id查询该课程对应试卷的选择题
    * @param courseId
    * @return  
    * List<Select>
     */
	List<Select> listSelectByCourseId(Integer courseId);
	
	/**
	 * 
	* @Title: listSelectBySectionTestId 
	* @Description: 根据章节测试id获取对应的选择题
	* @param sectionTestId
	* @return  
	* List<Select>
	 */
	List<Select> listSelectBySectionTestId(Integer sectionTestId);

}